package com.example.htmlspringtest.dao;

import com.example.htmlspringtest.base.dao.BaseMapper;
import com.example.htmlspringtest.entity.oTestIndustrytype;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @BelongsProject: HTML-Spring-test
 * @BelongsPackage: com.example.htmlspringtest.dao
 * @Author: dongmufengchun
 * @CreateTime: 2022-06-19  15:34
 * @Description: 持久层：用来操作数据库
 * @Version: 1.0
 */
@Mapper
public interface IndustryMapper extends BaseMapper<oTestIndustrytype>{
    /**
     * 功能简介: 对象查询
     *
     * @return java.util.List<T>
     * @Author dongmufengchun
     * @Date 16:24 2022/6/19
     **/
    @Override
    List<oTestIndustrytype> list();

    /**
     * 功能简介: 对象保存
     *
     * @param oTestIndustrytype
     * @return int
     * @Author dongmufengchun
     * @Date 16:23 2022/6/19
     **/
    @Override
    int save(oTestIndustrytype oTestIndustrytype);

    /**
     * 功能简介: 对象删除
     *
     * @param id
     * @return int
     * @Author dongmufengchun
     * @Date 16:23 2022/6/19
     **/
    @Override
    int delete(Long id);

    /**
     * 功能简介: 对象修改
     *
     * @param oTestIndustrytype
     * @return int
     * @Author dongmufengchun
     * @Date 16:24 2022/6/19
     **/
    @Override
    int update(oTestIndustrytype oTestIndustrytype);

    /**
     * 功能简介: 根据ID查询对象
     *
     * @param id
     * @return T
     * @Author dongmufengchun
     * @Date 16:24 2022/6/19
     **/
    @Override
    oTestIndustrytype findById(Long id);
}